<?php 
/*@var $this yii\web\view */
/*@var $form yii\widgets\ActiveForm */
use yii\widgets\ActiveForm;
use yii\captcha\Captcha;
use yii\helpers\Html;
$this->title='OSS后台登陆'
?>
<?php $form=ActiveForm::begin();?>
<label class="block clearfix">
	<span class="block input-icon input-icon-right">		
		<?=$form->field($model, 'username')->textInput(['placeholder'=>"用户名",'class'=>"form-control"])->label(false) ?>
		<i class="ace-icon fa fa-user"></i>
	</span>
</label>

<label class="block clearfix">
	<span class="block input-icon input-icon-right">
		<?=$form->field($model, 'Pwd')->passwordInput(['placeholder'=>'密码','class'=>'form-control'])->label(false) ?>
		<i class="ace-icon fa fa-lock"></i>
	</span>
</label>

<label class="block clearfix">
	<span class="block input-icon input-icon-right">
		<?=$form->field($model, 'verifycode')->widget(Captcha::className(),[
			'captchaAction'=>'main/captcha',
			'template'=>'{input}{image}',
			'options'=>['placeholder'=>'验证码','class'=>'col-xs-10 col-sm-7'],
		])->label(false); ?>
	
	</span>
</label>

<div class="space"></div>

<div class="clearfix">
	<label class="inline">
		<?=$form->field($model, 'remember')->checkbox(); ?>			
	</label>	
	<?=Html::submitButton('<i class="ace-icon fa fa-key"></i>登陆',['class'=>"width-35 pull-right btn btn-sm btn-primary"]) ?>					
	
</div>

<div class="space-4"></div>